# coding=utf-8
# coding=utf-8

while True:
    try:
        words = []
        words.append(input())
        for i in words:
            if len(i) < 9:
                print('{:<08}'.format(i))
            else:
                for j in range(1, (len(i) // 8) + 2):
                    if len(i[(j - 1) * 8:j * 8]) != 0:
                        print('{:<08}'.format(i[(j - 1) * 8:j * 8]))
    except:
        break
